package com.neuedu.dao.impl;

import com.neuedu.dao.AddFangchanNumberDao;

import com.neuedu.model.AddFangchanNumber;
import com.neuedu.model.AddXiaoquNumber;
import com.neuedu.utils.DbUtil;

import java.util.List;

public class AddFangchangNumberDaoImpl implements AddFangchanNumberDao {
    @Override
    public AddFangchanNumber select() {
        List<AddFangchanNumber> select = DbUtil.select(AddFangchanNumber.class, "id=?", 1);
        if (select != null && select.size() > 0) {
            return select.get(0);
        }
        return null;
    }

    @Override
    public int qudata(AddFangchanNumber addFangchanNumber) {
        return DbUtil.update(AddFangchanNumber.class,"id=?",1);
    }



}
